<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template member/header}

	<input type="hidden" id="hdErrMsg" />
	<div class="main-head">
		<span>用户中心 &gt; 投注记录 &gt; 追号查询</span>
	</div>
	<div class="con_box">
		<div class="form-horizontal acenter">
			<div class="clear" style="overflow:hidden;">
				<div class="ui-item ui-item1">
					<div class="control-group">
						<label class="control-label">追号编号：</label>
						<div class="controls">{$data['id']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">彩票种类：</label>
						<div class="controls">{$data['gname']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">开始期号：</label>
						<div class="controls">{$data['period']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">取消期数：</label>
						<div class="controls">{$data['cancelnum']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">中奖期数：</label>
						<div class="controls">{$data['prizenum']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">中奖后停止追号：</label>
						<div class="controls">{_e $data['stopwin'] ? '是' : '否'}</div>
					</div>
				</div>
				<div class="ui-item ui-item2">
					<div class="control-group">
						<label class="control-label">玩法：</label>
						<div class="controls">{$data['name']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">追号期数：</label>
						<div class="controls">{$data['num']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">追号总金额：</label>
						<div class="controls">{$data['money']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">派奖总金额：</label>
						<div class="controls">{$data['prize']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">官方跳开即停：</label>
						<div class="controls">{_e $data['stopskip'] ? '是' : '否'}</div>
					</div>
				</div>
				<div class="ui-item ui-item3">
					<div class="control-group">
						<label class="control-label">追号时间：</label>
						<div class="controls">{date('Y/m/d H:i:s',$data['dateline'])}</div>
					</div>
					<div class="control-group">
						<label class="control-label">模式：</label>
						<div class="controls">元</div>
					</div>
					<div class="control-group">
						<label class="control-label">完成期数：</label>
						<div class="controls">{$data['oknum']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">完成金额：</label>
						<div class="controls">{$data['okmoney']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">取消金额：</label>
						<div class="controls">{$data['cancelmoney']}</div>
					</div>
					<div class="control-group">
						<label class="control-label">订单状态：</label>
						<div class="controls">
							{if $data['status'] == 1}
								<p class="fc_green status-lose">追号中</p>
							{elseif $data['status'] == 2}
								<p class="fc_green status-lose">已结束</p>
							{/if}
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="bet-con clear">
			<span>追号内容</span>
			<div class="bet-num" title="{$data['rednum']}">{$data['rednum']}</div>
		</div>
		<div class="acenter">可能中奖情况</div>
		<div class="table-list">
			<table>
				<thead>
					<tr>
						<th>奖期</th>
						<th>追号倍数</th>
						<th>追号状态</th>
					</tr>
				</thead>
				<tbody>
					{loop $list as $val}
					<tr>
						<td>{$val['period']}</td>
						<td>{$val['times']}</td>
						<td>{$statuss[$val['status']]}</td>
					</tr>
					{/loop}
				</tbody>
			</table>
			<div class="table-list-text">
				<h3>奖金系数说明：</h3>
				<p></p>
				<h3>奖金计算说明：</h3>
				<p>若中奖号码包含双色球，则在实际派发奖金时需要乘对应号码的系数；</p>
				<p>如后三直选，0系数：1；1系数：0.978；2系数：0.985，开奖号码012，则派发奖金为1956*1*0.978*0.985=1884.273</p>
			</div>
		</div>
		<div class="foot-btn">
			<!--
			{if !$data['status']}
			<a href="javascript:void(0)" class="btn" data-bind="click:revokeOrder">撤销</a>
			{/if}
			-->
			<a href="javascript:void(0)" class="btn" data-bind="click:goBack">返回</a>
		</div>
	</div>
	<script type="text/javascript">
		(function () {
			var gameID = {$data['cid']};
			var orderID = {$data['id']};
			var BetModel = function () {
				var that = this;
				that.revokeOrder = function () {
					utils.confirm("是否要撤销该笔单？", function () {
						$.getJSON(U('member/ordertrack/cancel'), { ids: orderID, gameid: gameID }, function (json) {
							utils.tip(json.info, json.status);
						});
					});
				};
				that.goBack = function () {
					window.history.go(-1);
				};
			};
			$(document).ready(function () {
				ko.applyBindings(new BetModel, document.getElementById("ulMain"));
			});
		})();
	</script>	
	
    <div id="SEARCH-TIP" style="display:none;">
        <div class="mask"></div>
        <div class="popup tips-popup">
            <div class="popup-head">
                <span>提示</span>
            </div>
            <div class="popup-body">
                <p>查询中,请您耐心等待.....</p>
            </div>
        </div>
    </div>

{template member/footer}